<template>
  <div>
    <el-descriptions title="基本信息">
    <el-descriptions-item label="设备编号">{{facz.facModel}}</el-descriptions-item>
    <el-descriptions-item label="设备厂家">{{facz.facSeller}}</el-descriptions-item>
    <el-descriptions-item label="出厂时间">{{facz.facDate}}</el-descriptions-item>
    <el-descriptions-item label="开启时间">{{facz.frStartTime}}</el-descriptions-item>
    <el-descriptions-item label="关闭时间">{{facz.frEndTime}}</el-descriptions-item>
    <el-descriptions-item label="灯杆编号">{{facz.lpId}}</el-descriptions-item>
    <el-descriptions-item label="连接状态">
      <el-tag size="small">在线</el-tag>
    </el-descriptions-item>
    <el-descriptions-item label="所在区域">{{facz.areaName}}</el-descriptions-item>
</el-descriptions>

<el-descriptions title="运行状态">
    <el-descriptions-item label="照明状态">{{facz.facStateName}}</el-descriptions-item>
    <el-descriptions-item label="亮度调节">特亮</el-descriptions-item>
    <el-descriptions-item label="当前（V）">{{facz.lpVoltage}}</el-descriptions-item>
    <el-descriptions-item label="当前（A）">{{facz.lightCurrent}}</el-descriptions-item>
</el-descriptions>
<br><br>
<el-row>
  <el-button type="info" round @click="toBack">返回上一层</el-button>
</el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
        facz:{}
    };
  },
  methods: {
    toBack(){
        this.$router.push("/deng");
    },
    load(){
        this.facz = JSON.parse(sessionStorage.getItem("facz"));
    }
  },
  mounted() {
    this.load();
  },
};
</script>

